package org.hzero.exam.infra.repository.impl;

import org.hzero.exam.domain.entity.HodrCompany;
import org.hzero.exam.domain.repository.HodrCompanyRepository;
import org.hzero.exam.infra.mapper.HodrCompanyMapper;
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 马旭阳
 * @date2019/8/5
 */
@Component
public class HodrCompanyRepositoryImpl extends BaseRepositoryImpl<HodrCompany> implements HodrCompanyRepository {
    @Autowired
    private HodrCompanyMapper companyMapper;

    @Override
    public List<HodrCompany> selectByCompanyIdAndName(String companyNumber, String companyName) {

        return companyMapper.selectByCompanyIdAndName(companyNumber,companyName);
    }

    @Override
    public HodrCompany selectByCompanyNumber(String companyNumber) {
        return companyMapper.selectByCompanyNumber(companyNumber);
    }
}
